package hjj.feign;

import hjj.entity.Product;
import org.springframework.stereotype.Component;

@Component
public class ProductFeignClientCallBack implements ProductFeignClient {
    //服务降级方法
    @Override
    public Product findById(Long id) {
        Product product = new Product();
        product.setProductName("触发服务降级方法");
        return product;
    }
}
